package com.ihg.hiex.entity.session.after;

import com.demo2do.core.utils.Alias;

/**
 *
 * @author Ark
 *
 */
@Alias("ReportSendStatus")
public enum ReportSendStatus {

    UNSENT("unsent", "未发送"),
    
    SENDING("sending", "发送队列中"),
    
    SENT("sent", "已发送");
    
    private String code;
    
    private String description;

    /**
     * @param code
     * @param description
     */
    private ReportSendStatus(String code, String description) {
        this.code = code;
        this.description = description;
    }

    /**
     * @return
     */
    public boolean isUnsent() {
        return this.equals(UNSENT);
    }
    
    /**
     * @return
     */
    public boolean isSending() {
        return this.equals(SENDING);
    }
    
    /**
     * @return
     */
    public boolean isSent() {
        return this.equals(SENT);
    }
    
    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    
}
